//
//  ResultInfo.h
//  DebugDemo
//
//  Created by XFB on 2018/11/23.
//  Copyright © 2018年 ZhouCheng. All rights reserved.
//

#import <Foundation/Foundation.h>

@class ResultInfo;
typedef void(^SuccessResultHandler)(ResultInfo *resultInfo);
typedef void(^FailureResultHandler)(NSError *error);

NS_ASSUME_NONNULL_BEGIN

@interface ResultInfo : NSObject

@property (nonatomic, assign) NSInteger resultCode;
@property (nonatomic, assign) id resultMessage;
@property (nonatomic, assign) id resultContent;

+ (instancetype)shareInstance;

+ (ResultInfo *)convertResponseToResultInfo:(id)response;

@end

NS_ASSUME_NONNULL_END
